pltinit.m | Contains the code used to create a new plt pseudo object which means creating a new plot axis or set of axes. This also normally means creating a new figure window as well. (The only exception to that is when the 'Fig' parameter is included in the parameter list.) |
plt.m | Contains the code used to create or modify any of the remaining pseudo objects (including grid, edit, pop, slider, image, ColorPick, and HelpText) but not including the cursor pseudo object. |
cur.m | Contains the code used to create or modify the cursor pseudo object. |
getappdata(gcf,'axis') | Returns a row vector of handles of the axes containing the plotted data. The first handle in the vector is the left-hand main plot. This is followed by the subplot axes (if any) from the bottom up. Finally, the last element of the vector will be the handle of the main plot right hand axis (if any). |
findobj(gcf,'tag','click') | Similar to above except only a single axis handle is returned (the main plot left-hand axis) |
get(ax,'user') | Returns the cursor ID for the axis with handle ax which may be any axis that appears in the vector returned from the command above. |
getappdata(gcf,'cid') | Returns the cursor IDs for each axis, starting with the main (lower) axis and working upwards to include all the subplot axes. (There is not a cursor object associated with the right-hand axis since the main axis cursor also displays data from the right hand axis.) |
getappdata(gcf,'Lhandles') | Returns a list of all handles of all data traces created by plt. Note that this is identical to the plt return value. |
getappdata(ax,'Lhandles') | Each axis (including the right-hand axis) also has a 'Lhandles' application data value. This contains a list of all lines contained in that axis. The main (lower) plot is an exception since its Lhandles list includes the traces on both the left and right-hand axis. |
findobj('name','Abc') | If the plt call includes a parameter such as 'FigName','Abc' then this command will return the handle of the figure window that plt created. This can be useful in programs that create multiple plt figures. |
findobj(gcf,'user','TraceID') | Various plt arguments may be used to modify the location, appearance, or contents
of the TraceID box. However, occasionally you may want to make further modifications
after the plt call and this command will allow you to do that by returning
the handle of the axis that is used as the TraceID box. An alternate way of finding
this handle is to use the cur(CID,'obj') command.
See the |
findobj(gcf,'tag','MenuBox') | This command will return the handle of the MenuBox. Assuming
the menu box is in its default configuration, a command such as: get(findobj(gcf,'tag','MenuBox'),'child') will return a list of text objects with string properties of: 'XY<->', 'Zout', 'Mark', 'Data', 'Grid', 'LinY', 'LinX', and 'Help'. |
findobj(gcf,'user','grid') | This command returns a column vector containing the line handles of the plot grids for all the axes in the figure. If there is just a single axis (i.e. one grid object) then this is equivalent to plt('grid',0,'get'). |
getappdata(gcf,'params') | Returns a cell array list of the parameters specified on the plt command line. (All plt arguments are included except the arguments specifying the data arrays.) |
getappdata(ax,'xstr') | Returns the value that was specified in the 'Xstring' parameter when plt was called. ax refers to the primary left-hand axis. |
getappdata(ax,'ystr') | Returns the value that was specified in the 'Ystring' parameter when plt was called. ax refers to the primary left-hand axis. |
getappdata(gcf,'multi') | Returns a column vector of handles to the objects used to render the Multi-cursor (the text objects, followed by the markers, followed by the dotted vertical line). If the multi-cursor is not currently enabled, then this vector will be empty. |
getappdata(0,'Mver') | Returns a numerical value derived from the string returned by the Matlab version command. Before this string is converted to a number it is modified in a way that preserves chronological order (i.e. later versions will return a larger number). For example, in Matlab version '9.11' this root application data will be assigned a numerical value of 9.11 (i.e. the same as the string), however in Matlab version '9.8' this will be assigned a value of 9.08 (different from the numerical value of the Matlab version string). Some of the demo programs use constructs that are slightly different in different Matlab versions, so these programs use the 'Mver' application data so that these demos will run properly in any Matlab version. |
plt help | Displays the plt help file. You could also use the functional form of this command: plt('help'). Alternatively, if you just want a one-page list of the plt parameters type type help plt. |
plt version | Returns the plt version. Same as: plt('version') |
plt save | Opens a dialog box allowing you to select a .plt figure file that can be opened later using the plt open item in the file menu. If you want to avoid the file dialog box add the file name as a 3rd argument (i.e. plt save filename). The use of these plt figure files is described in more detail in the Menu box section. Note that this command is also available from the file menu. |
plt open | Opens a dialog box allowing you to select a .plt figure file
that was saved using the
plt save item in the file menu. If you want to avoid the file dialog
box add the file name as a 3rd argument |
plt close | If a programming error causes plt to crash, you may find it difficult to close the plt figure windows (because they use the close request function). This command solves the problem by closing all currently open plt figure windows. Figure windows not created by plt are not closed. (And of course, you may also use the functional form.) |
plt show | If the current figure was created by plt, then this command, or the equivalent functional form plt('show'), will return a list of trace numbers that are currently being displayed. For example, if you run the demo program "plt5.m" (which has five traces) and then turn off traces 3 and 4 (by clicking on their trace IDs) then this command will return [1 2 5] showing that those three traces are currently active. You can also use this command with an argument (the functional form only) from a program or the command window to set the traces you want active for the current figure. For example after running plt5.m, the command plt('show',2:5) will turn off the first trace while leaving the remaining four traces on. Note that the TraceIDs will change their appearance to indicate which traces are enabled just as if you had done the same operation by clicking on the trace names in the TraceID box. To disable all traces, use plt('show','') and to enable all traces, use plt('show','all') or plt('show',1:n) where n is the number of traces defined. |
plt HelpText plt HelpText off plt HelpText on |
The first two forms to the left (off or with no argument) delete the help text and the last
form (on) recreates that help text again (which it can do by retrieving the help text
information using getappdata(gcf,'helptext')).
Help text is usually created by using the 'HelpText' parameter
when the plt window is created (this is described in the
|
plt move | This command (which has the same effect as right-clicking on the delta cursor button) sets the current plt figure into its repositioning mode. This allows all gui objects to be resized and/or repositioned using the mouse. The new positions are displayed in the command window. Typing plt move a second time cancels the repositioning mode and returns the controls to their prior functions. Details may be found here: GUI building with plt |